//
//  Book.m
//  Homework_03 - NSString NSArray NSMutableArray
//
//  Created by 岁变 on 16/7/6.
//  Copyright © 2016年 岁变. All rights reserved.
//

#import "Book.h"

@implementation Book

- (instancetype)initWithName:(NSString *)name price:(NSString *)price {
    self = [super init];
    if (self) {
        _name = name;
        _price = price;
    }
    return self;
}

+ (instancetype)bookWithName:(NSString *)name price:(NSString *)price {
    Book *book = [[Book alloc] initWithName:name price:price];
    return book;
}

@end
